//
//@File    :	6.2_ifelse.cpp
//@Time    :	2021/08/07 20:04:25
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	using the if else statement
//

#include <iostream>

int main()
{
    using namespace std;
    char ch;
    cout<<"Type, and I shall repeat.\n";
    cin.get(ch);
    while(ch!='.')
    {
        if (ch =='\n')
        {
            cout<<ch;
        }
        else
        {
            cout<<++ch;
        }
        cin.get(ch);
    }
    cout<<"\nPlease excuse the slight confusion.\n";
    //cin.get();
    //cin.get();
    system("pause");
    return 0;
}